package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    void save(UserInfo userInfo);
    void update(UserInfo userInfo);
    void delete(String id);
    UserInfo get(String id);
    List<UserInfo> listAll();
    boolean checkPhone(String phone);

    /**
     *
     * @param phone
     */
    void sendVerifyCode(String phone, String smsUrl, String appkey);

    /**
     * 注册
     * @param phone
     * @param nickname
     * @param password
     * @param rpassword
     * @param verifyCode
     */
    void regist(String phone, String nickname, String password, String rpassword, String verifyCode);

    /**
     * 登录
     * @param username
     * @param password
     */
    UserInfo login(String username, String password);

    List<UserInfo> findByCity(String keyword);
}
